package com.jiangjiang.eshop.promotion.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @ClassName PromotionActivityEntity
 * @Description TODO
 * @Author jhw
 * @Date 2021/7/15 10:55
 * @Version 1.0
 **/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("promotion_activity")
public class PromotionActivityEntity {
    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 促销活动名称
     */
    @TableField("name")
    private String name;
    /**
     * 促销活动开始时间
     */
    @TableField("start_time")
    private Date startTime;
    /**
     * 促销活动结束时间
     */
    @TableField("end_time")
    private Date endTime;
    /**
     * 促销活动备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 促销活动状态
     */
    @TableField("status")
    private Integer status;
    /**
     * 促销活动规则
     */
    @TableField("rule")
    private String rule;
    /**
     * 促销活动类型
     */
    @TableField("type")
    private Integer type;
    /**
     * 促销活动的创建时间
     */
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;
    /**
     * 促销活动的修改时间
     */
    @TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;
}
